/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.hk.sys.entity.user;

import com.google.common.collect.Lists;
import com.thinkgem.jeesite.common.persistence.DataEntity;
import com.thinkgem.jeesite.modules.hk.media.entity.HkSystemAreaFreight;
import com.thinkgem.jeesite.modules.hk.shop.entity.shop.HkUserShop;
import com.thinkgem.jeesite.modules.sys.entity.Area;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 用户产品运费模板Entity
 *
 * @author 罗天文
 * @version 2018-06-20
 */
public class HkUserProductFreight extends DataEntity<HkUserProductFreight> {

    private static final long serialVersionUID = 1L;
    private HkUser user;        // 用户
    private String issystem;        // 是否系统模板
    private String name;        // 名称
    private String isexcept;        // 是否除之外
    private String piece;        // 件
    private String provinceId;        // 省
    private String money;        // 金额
    private String addPiece;        // 增加件
    private String addMoney;        // 增加金额
    private HkUserShop shop;  //店铺
    private String provinceName; //省
    private List<HkSystemAreaFreight> hkSystemAreaFreightList = Lists.newArrayList();        // 子表列表

    private Area area;

    private List<HkUserProductAreaFreight> hkUserProductAreaFreightList = Lists.newArrayList();        // 子表列表

    public HkUserProductFreight() {
        super();
    }

    public HkUserProductFreight(String id) {
        super(id);
    }

    public HkUser getUser() {
        return user;
    }

    public void setUser(HkUser user) {
        this.user = user;
    }

    @Length(min = 0, max = 1, message = "是否系统模板长度必须介于 0 和 1 之间")
    public String getIssystem() {
        return issystem;
    }

    public void setIssystem(String issystem) {
        this.issystem = issystem;
    }

    @Length(min = 0, max = 100, message = "名称长度必须介于 0 和 100 之间")
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Length(min = 0, max = 1, message = "是否除之外长度必须介于 0 和 1 之间")
    public String getIsexcept() {
        return isexcept;
    }

    public void setIsexcept(String isexcept) {
        this.isexcept = isexcept;
    }

    @Length(min = 0, max = 11, message = "件长度必须介于 0 和 11 之间")
    public String getPiece() {
        return piece;
    }

    public void setPiece(String piece) {
        this.piece = piece;
    }

    @Length(min = 1, max = 2000, message = "省不能为空")
    public String getProvinceId() {
        return provinceId;
    }

    public void setProvinceId(String provinceId) {
        this.provinceId = provinceId;
    }

    @Length(min = 0, max = 11, message = "金额长度必须介于 0 和 11 之间")
    public String getMoney() {
        return money;
    }

    public void setMoney(String money) {
        this.money = money;
    }

    @Length(min = 0, max = 11, message = "增加件长度必须介于 0 和 11 之间")
    public String getAddPiece() {
        return addPiece;
    }

    public void setAddPiece(String addPiece) {
        this.addPiece = addPiece;
    }

    @Length(min = 0, max = 11, message = "增加金额长度必须介于 0 和 11 之间")
    public String getAddMoney() {
        return addMoney;
    }

    public void setAddMoney(String addMoney) {
        this.addMoney = addMoney;
    }

    public Area getArea() {
        return area;
    }

    public void setArea(Area area) {
        this.area = area;
    }

    public List<HkUserProductAreaFreight> getHkUserProductAreaFreightList() {
        return hkUserProductAreaFreightList;
    }

    public HkUserShop getShop() {
        return shop;
    }

    public void setShop(HkUserShop shop) {
        this.shop = shop;
    }

    public void setHkUserProductAreaFreightList(List<HkUserProductAreaFreight> hkUserProductAreaFreightList) {
        this.hkUserProductAreaFreightList = hkUserProductAreaFreightList;
    }

    public String getProvinceName() {
        return provinceName;
    }

    public void setProvinceName(String provinceName) {
        this.provinceName = provinceName;
    }

    public List<HkSystemAreaFreight> getHkSystemAreaFreightList() {
        return hkSystemAreaFreightList;
    }

    public void setHkSystemAreaFreightList(List<HkSystemAreaFreight> hkSystemAreaFreightList) {
        this.hkSystemAreaFreightList = hkSystemAreaFreightList;
    }
}